<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .menu {
            width: 200px;
            padding: 5px;
            font-size: 12px;
            line-height: 30px;
            text-indent: 5px;
            border: 1px solid #dadce0;
            position: fixed;
            display: none;
        }

        .menu .list li:not(:last-child) {
            border-bottom: 1px solid #dadce0;
        }
    </style>
</head>

<body>
    <div class="menu">
        <ul class="list">
            <li class="copy">复制</li>
            <li class="paste">粘贴</li>
            <li class="cut">剪切</li>
            <li class="refresh">刷新</li>
        </ul>
    </div>
</body>
<script>
    var menu = document.getElementsByClassName("menu")[0]

    document.addEventListener('contextmenu', function (e) {
        var e = e || window.event
        e.preventDefault
    })
</script>

</html>